public class Sorter{
	public static void sort(Object[] data,Comparator comp){
	for(int i=data.length-1;i>=1;i--){
		int indexofmax=0;
		for(int j=1;j<=i; j++){
			if(comp.compare(data[j], data[indexofmax])> 0)
				indexofmax =j;
		}
		Object temp = data[i];
		data[i] = data[indexofmax];
		data[indexofmax] = temp;
		}
	}
}
